<html>
<head><meta charset="utf-8"><title>Implementations for each platform per architecture · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html">Implementations for each platform per architecture</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217319650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217319650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Rusty Shackleford <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217319650">(Nov 19 2020 at 19:36)</a>:</h4>
<p>From what I understand, Rust's file system calls are implemented via <code>llvm_asm!</code> macro, I found the implementations for these a while ago, but im look and I can t find it. </p>
<p>What I'd like to know is where I could, for example find the Filesystem implementations for arm64 darwin, for example.<br>
thanks in advance!<br>
(If this isnt the right channel, im brand new to zulip, my apologies)</p>



<a name="217320268"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320268" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320268">(Nov 19 2020 at 19:42)</a>:</h4>
<p>we don't just call into libc?</p>



<a name="217320357"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320357" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Rusty Shackleford <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320357">(Nov 19 2020 at 19:42)</a>:</h4>
<p>That would makes sense but I think I have seen the inline asm for syscalls at some point</p>



<a name="217320412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320412">(Nov 19 2020 at 19:43)</a>:</h4>
<p>pretty sure we at least don't do raw syscalls on darwin, they're not a stable interface there</p>



<a name="217320431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320431">(Nov 19 2020 at 19:43)</a>:</h4>
<p>they only are on Linux from what I know</p>



<a name="217320494"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320494" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Rusty Shackleford <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320494">(Nov 19 2020 at 19:43)</a>:</h4>
<p>I think the ones I saw was for linux yeah</p>



<a name="217320666"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320666" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Rusty Shackleford <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320666">(Nov 19 2020 at 19:44)</a>:</h4>
<p>I found it, std/src/os, thank you</p>



<a name="217320981"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320981" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320981">(Nov 19 2020 at 19:47)</a>:</h4>
<p>It should be <a href="https://github.com/rust-lang/rust/blob/master/library/std/src/sys/unix/fs.rs"><code>std/src/sys/unix/fs.rs</code></a></p>



<a name="217320999"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217320999" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217320999">(Nov 19 2020 at 19:47)</a>:</h4>
<p><code>std::os</code> contains os-specific extensions</p>



<a name="217322328"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Implementations%20for%20each%20platform%20per%20architecture/near/217322328" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Implementations.20for.20each.20platform.20per.20architecture.html#217322328">(Nov 19 2020 at 19:57)</a>:</h4>
<p>even on Linux, we don't do asm syscalls, but sometimes <code>libc::syscall</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>